// Copyright (C) 2022 Linlexiao
#ifndef PAILABEL_H
#define PAILABEL_H

#include <QLabel>
#include <QResizeEvent>
#include <QWidget>

#include "logic/pai.h"

class PaiLabel : public QLabel {
    Q_OBJECT
 private:
    static QMap<QString, QPixmap> paiPicture;
    void resizeEvent(QResizeEvent* event) override;

 public:
    static int SIZE;
    PaiLabel(QWidget* parent);
    static void init();
    void setPai(const QString& s);
    void removePai();
};

#endif  // PAILABEL_H
